﻿using System;
using System.Collections.Generic;
using BlogLite.Models.Database;

namespace BlogLite.Tests.Fakes
{
    public class FakeBlogLiteDatabase
    {
        public List<Post> Posts
        {
            get
            {
                return new List<Post>()
                {
                    new Post()
                    {                                                
                        Content = "<p>FakeContent</p>",
                        LastModified = DateTime.Now.AddDays(3),
                        PostDate = DateTime.Now.AddDays(2),                        
                        PostId = 1,
                        Subject = "Test Post 1",
                        Tags = new List<Tag>() { new Tag() { TagId = 1, TagName = "Test Tag" }}
                    },

                    new Post()
                    {                                                
                        Content = "FakeContent",
                        LastModified = DateTime.Now.AddDays(2),
                        PostDate = DateTime.Now.AddDays(1),                                            
                        PostId = 2,
                        Subject = "Test Post 2"                       
                    },

                    new Post()
                    {                                                
                        Content = "FakeContent",
                        LastModified = DateTime.Now.AddDays(1),
                        PostDate = DateTime.Now,                        
                        PostId = 3,
                        Subject = "Test Post 3"                       
                    }
                };
            }
        }

        public List<Tag> Tags
        {
            get
            {
                return new List<Tag>()
                {
                    new Tag()
                    {                       
                        TagId = 1,
                        TagName = "Test Tag"
                    }
                };
            }
        }

        public List<User> Users
        {
            get
            {
                return new List<User>()
                {
                    new User()
                    {
                        UserId = 1,
                        DisplayName = "Scott Lance"
                    }
                };
            }
        }
    }
}
